/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package za.ac.cput.designpatterns.structural.proxy;

import za.ac.cput.designpatterns.structural.composite.ComponentFactory;

/**
 *
 * @author bassoncj
 */
public class ProxyMainFactory {
    private static ProxyMainFactory proxyMainFactory = null;
    
    private ProxyMainFactory(){
        
    }
    
    public synchronized static ProxyMainFactory getInstance(){
        if(proxyMainFactory == null){
            proxyMainFactory = new ProxyMainFactory();
        }
        return proxyMainFactory;
    }
    
    public FastThingFactory getComponentFactory(){
        return new FastThingFactory();
    }
    
    public ProxyFactory getProxyFactory(){
        return new ProxyFactory();
    }
}
